package com.teamwork.ZuccEcho.Repository;

import com.teamwork.ZuccEcho.Entity.Moptions;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface MoptionsApiRepository extends JpaRepository<Moptions, Long>, JpaSpecificationExecutor<Moptions> {
    Moptions findById(long id);

    @Query(value="select * from moptions where mo_id = ?1", nativeQuery = true)
    Moptions searchMoptionsById(long Mo_id);
}
